package com.ylr.base.config;

import com.ylr.base.common.exception.handler.SentinelExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-04-30 22:07:48
 * className: SentinelConfig sentinel配置类
 * version: 1.0
 * description:
 */
@Configuration
public class SentinelConfig {

    /**
     * 注入限流异常处理bean
     */
    @Bean
    public SentinelExceptionHandler sentinelExceptionHandler() {
        return new SentinelExceptionHandler();
    }

}
